<?php

$query="SELECT * from $tusers WHERE name=".quote_smart($user);
$query.=" and passwd='".md5($passwd)."'";

$result=mysqli_query($conn,$query);
$num_rows=mysqli_num_rows($result);
if ($num_rows>0) {
	$rec=mysqli_fetch_array($result);
	return 1;
	
} else return 0;

